<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>你已经登陆成功！</title>
    <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>

<body class="jumbotron">
    <div class="container">
        <h1>你已经登陆成功！</h1>
        <h1><small>您的用户名:
            <script>
                document.write(localStorage.presentUser);
            </script>
        <small></h1>
        <a class="btn btn-primary btn-lg" role="button" href="./index.html">返回注册登陆界面</a>
        <h3>
            <p>已经注册的用户：</p>
            <ul>
            <script>
                var s='';
                for(var i in localStorage){
                    if(i!='presentUser'&&i!='length'&&i!='key'&&i!='getItem'
                    &&i!='setItem'&&i!='removeItem'&&i!='clear'&&i!='ghdskl'){
                        s=s+'<li>'+i.substring(6)+'</li>';
                    }
                }
                document.write(s);
            </script>
        </ul></h3>
    </div>
</body>

</html>